<!-- 自提点管理 -->
<template>
  <SingleFieldManager :config="config" :customAdd="true" @add="add" @modify="modify" @show="show" />
</template>

<script setup>
import SingleFieldManager from "@com/SingleFieldManager.vue";
import useRoute from "@util/router";
const config = {
  name: "自提点",
  type: 'deliveryStation',
  route: 'takegoodsmanager'
};
const route = useRoute()
function add() {
  route.push({ name: 'takegoodsdetails', query: { type: 'add' } })
}
function modify(data) {
  route.push({ name: 'takegoodsdetails', query: { type: 'modify', code: data.id } })
}
function show(data) {
  route.push({ name: 'takegoodsdetails', query: { type: 'show', code: data.id } })
}
</script>
